home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 143 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.3 KB

  1. From: "john (j.d.) hickin" <hickin@bnr.ca>
  2. Message-ID: <4e8r8a$9ir@bmtlh10.bnr.ca>
  3. X-Original-Date: Thu, 25 Jan 1996 21:04:10 +0000
  4. Path: in1.uu.net!bounce-back
  5. Date: 26 Jan 96 05:06:06 GMT
  6. Approved: fjh@cs.mu.oz.au
  7. Subject: basic_string<T>::npos
  8. Newsgroups: comp.std.c++
  9. Organization: Bell-Northern Research
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.1 (X11; I; HP-UX A.09.05 9000/715)
  14. X-Url: news:comp.std.c++
  15. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  16.     iQBFAgUBMQhhe+EDnX0m9pzZAQEvpAF+LWeVoEckj9zKvbIQ2eUN7pjyFBgW3jW8
  17.     k2+GE/R/6q0bTL4Kh2p8O/UdpLiPlMv3
  18.     =mDe0
  19.  
  20. From the October draft (I think); the basic_string class interface has these
  21. declarations:
  22.  
  23.    typedef typename Allocator::size_type       size_type;
  24.    ...
  25.    static const size_type npos = -1;
  26.  
  27. It is my understanding that the Allocater::size_type should be an unsigned
  28. flavour.  If this is indeed the case, are we to interpret nops as having the
  29. value (size_type)(-1) ?
  30.    
  31. -- 
  32. John Hickin      Bell-Northern Research, Montreal, Quebec
  33. (514) 765-7924   hickin@bnr.ca
  34. ---
  35. [ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  36.   Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  37.   is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
  38.